package com.xoms.front.model.res;

import java.io.Serializable;
import java.util.Objects;

/**
 * 拥有的资源列表
 **/
public class HaveResourcesBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer rid; // 资源Id
	private String resourceName; // 资源名称
	private Integer pid; // 资源父级id
	private String url; // 资源路径
	private Integer type; // 资源类型 1:菜单 2:按钮
	private Integer level; // 菜单级别：1：一级菜单  2:二级菜单

	public void setRid(Integer rid) {
 		this.rid = rid;
	}

	public Integer getRid() {
 		return rid;
	}

	public void setResourceName(String resourceName) {
 		this.resourceName = resourceName;
	}

	public String getResourceName() {
 		return resourceName;
	}

	public void setPid(Integer pid) {
 		this.pid = pid;
	}

	public Integer getPid() {
 		return pid;
	}

	public void setUrl(String url) {
 		this.url = url;
	}

	public String getUrl() {
 		return url;
	}

	public void setType(Integer type) {
 		this.type = type;
	}

	public Integer getType() {
 		return type;
	}

	public void setLevel(Integer level) {
 		this.level = level;
	}

	public Integer getLevel() {
 		return level;
	}
	
	@Override  
    public boolean equals(Object o) {  
        if (o == this) return true;  
        if (!(o instanceof HaveResourcesBean)) {  
            return false;  
        }  
        HaveResourcesBean resource = (HaveResourcesBean) o;  
        return rid == resource.rid && pid == resource.pid && 
                Objects.equals(resourceName, resource.resourceName) &&  
                Objects.equals(url, resource.url);  
    }  
  
    @Override  
    public int hashCode() {  
        return Objects.hash(rid, pid, resourceName, url);  
    }  
  

}
